﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using FazaDemo.BL.Domain;
using FazaDemo.QL.AbstractQueryModel;
using FazaDemo.Data;
using FazaDemo.QueryModel;

namespace FazaDemo.PL.WebSite.Mvc.Controllers.Api
{
    public class HouseController : ApiController
    {

        private readonly IQueryRepository<object, House> _repository;

        public HouseController()
        {
            _repository = new HouseRepository();
        }

        // GET api/<controller>
        public IEnumerable<House> Get()
        {
            var result = _repository.Get();
            return _repository.Get();
        }

        // GET api/<controller>/5
        public string Get(int id)
        {
            return "value";
        }

        // POST api/<controller>
        public void Post([FromBody]string value)
        {
        }

        // PUT api/<controller>/5
        public void Put(int id, [FromBody]string value)
        {
        }

        // DELETE api/<controller>/5
        public void Delete(int id)
        {
        }
    }
}